
//Copyright 1997-2009 Syrinx Development, Inc.
//This file is part of the Syrinx Web Application Framework (SWAF).
// == BEGIN LICENSE ==
//
// Licensed under the terms of any of the following licenses at your
// choice:
//
//  - GNU General Public License Version 3 or later (the "GPL")
//    http://www.gnu.org/licenses/gpl.html
//
//  - GNU Lesser General Public License Version 3 or later (the "LGPL")
//    http://www.gnu.org/licenses/lgpl.html
//
//  - Mozilla Public License Version 1.1 or later (the "MPL")
//    http://www.mozilla.org/MPL/MPL-1.1.html
//
// == END LICENSE ==
using System;
using System.Diagnostics;
using System.Xml;



namespace Swaf.Gui
{
	/// <summary>
	/// Summary description for BaseLayoutManager.
	/// </summary>
	public abstract class BaseLayoutManager : BaseGuiWidget, ILayoutManager
	{
		public BaseLayoutManager()
		{
		}

		/// <summary>
		/// This method is origionally defined in the <c>ILayoutManager</c> interface.
		/// A virtual implementation of this method is provided here to simplify the development
		/// of real layout managers.
		/// </summary>
		public virtual void addChild(object child, string location){}
		public virtual void addChild(object child, System.Xml.XmlElement layoutInfo){}
		public virtual void removeChild(object child){}
		public virtual void showChild(object child){}
		public virtual void applyContent(object context){}
		public virtual IGuiWidget getNamedItem(string name){return null;}
		protected virtual ILocation createLocation(string name, object parent) {return null;}
	}
}
